<?php
	require("includes/database.php");
?>
<html>
	<head>
    	<?php
		require("frmHeader.php");
		?>
	</head>
	<body>
    	<table cellpadding="0" cellspacing="0" align="center" class="tablaPrincipal">
        	<tr>
            	<td align="center">
                	<?php
					//require("frmSession.php");
					?>
                </td>
            </tr>
            <tr>
            	<td align="center">
                	<?php
					require("frmTitulo.php");
					?>
                </td>
            </tr>
            <tr>
            	<td height="20">&nbsp;
                	
                </td>
            </tr>
            <tr>
            	<td align="center">
                	<table cellpadding="0" cellspacing="0" align="center" class="menuPrincipal">
                    	<tr>
                        	<td>
								<?php
                                require("frmMenu.php");
                                ?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
            	<td height="20">&nbsp;
                	
                </td>
            </tr>
            <tr>
                <td align="center">
                	<table cellpadding="0" cellspacing="0" align="center" class="tituloPantalla">
                    	<tr>
                        	<td align="center">
                            	<p class="texto" align="left">Título de la Pantalla</p>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
             <tr>
            	<td height="20">&nbsp;
                	
                </td>
            </tr>
            <tr>
                <td align="center">
                	<table cellpadding="0" cellspacing="0" align="center" class="contenedorPrincipal">
                    	<tr>
                        	<td align="">
                        		<form name="precios" action="precios.php?iOpcion=1" method="post" onsubmit="return validaPrecio();">
                        			<table>
                        				<tr>
                        					<td>Nombre: </td>
                        					<td><input type="text" name="txtNombre" size="50" maxlength="200"/></td>
                        				</tr>
                                <tr>
                                  <td>Precio: </td>
                                  <td>
                                    <input type="text" name="txtPrecio" size="50" maxlength="20"/>
                                  </td>
                                </tr>
                                <tr>
                                    <td>Lista de precios: </td>
                                    <td>
                                      <select name="cboListaPrecios" style="width:100%;">
                                       <?php
                    							        $mySQL = "SELECT * FROM listasPrecios";
												                    							
                    							        $result = readSQL($mySQL);
                    							
								  				                foreach($result as $value)
								  				                {
                                          //Insertarlo en el combo cboLocalidades
								  					                echo "<option value='" . $value[0] . "'>" . $value[1] . "</option>";
								  				                }
                    							      ?>
                                      </select>
                                    </td>
                                  </tr>
                                <tr>
                                  <td colspan="2" align="right">
                                    <input type="submit" name="cmdGuardar" value="Guardar"/>
                                  </td>
                                </tr>
                        			</table>
                        		</form>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
	</body>
</html>